Imports System.Xml.Serialization
Namespace Mapping

    Public Class FunctionImportEntityTypeMapping
        Inherits XEntityModelElementBase

        ''' <summary>Initializes an instance of the <see cref="FunctionImportEntityTypeMapping" /> class.
        ''' This is the default constructor for this class.</summary>
        Public Sub New()
            MyBase.New("EntityTypeMapping", CSXmlNamespace)
        End Sub

        ''' <summary>Initializes an instance of the <see cref="FunctionImportEntityTypeMapping" /> class.</summary>
        ''' <param name="other">An <see cref="System.Xml.Linq.XElement"/> object to copy from.</param>
        Public Sub New(ByVal other As XElement)
            MyBase.New(other)
        End Sub

        Private __condition As FunctionImportConditionCollection

        <AutoLoad()> _
        <XmlElement("Condition", GetType(FunctionImportCondition))> _
        Public ReadOnly Property Conditions() As FunctionImportConditionCollection
            Get
                If (__condition Is Nothing) Then
                    __condition = New EdmxEditor.Mapping.FunctionImportConditionCollection(Me, MyBase.Name.Namespace, "Condition")
                End If
                Return __condition
            End Get
        End Property

        <XmlAttribute()> _
        Public Property TypeName() As String
            Get
                Return Me.@TypeName
            End Get
            Set(ByVal value As String)
                Me.@TypeName = value
            End Set
        End Property

    End Class

End Namespace